<!--
 * @Author: lihaogn
 * @Date: 2021-12-17 10:26:02
 * @LastEditTime: 2022-05-15 18:06:56
 * @LastEditor: lihaogn
 * @Description: 
 * @FilePath: \lix-vue2-demos\src\views\demo\vue\prop\index.vue
-->
<template>
  <div>
    <AttrsTest
      style="border:1px solid #ccc;display:inline-block;padding: 0 10px;"
      :visible="visible"
      @click="handleClick"
      @ok="handleOk"
    />
  </div>
</template>

<script>
import AttrsTest from './modules/AttrsTest.vue'
export default {
  components: { AttrsTest },
  data() {
    return {
      visible: false
    }
  },
  methods: {
    handleClick() {
      console.log('index click 响应了')
    },
    handleOk() {
      console.log('index ok 响应了')
    }
  }
}
</script>

<style lang="less" scoped></style>
